    <div id="content" class="span10">
      <!-- content starts -->


      <div>
        <ul class="breadcrumb">
          <li>
            <a href="<?php echo base_url('panel'); ?>">Inicio</a> <span class="divider">/</span>
          </li>
          <li>
            Infografía
          </li>
        </ul>
      </div>

      <div class="row-fluid">
        <div class="box span12">
          <div class="box-header well" data-original-title>
            <h2><i class="icon-file"></i> Infografía</h2>
            <div class="box-icon">
              <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
              <a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
            </div>
          </div>
          <div class="box-content">

            <form action="<?php echo base_url('panel/infografia/'); ?>" method="get" class="form-search"> <!-- START FILTROS -->
              <div class="form-actions center">

                <div class="input-prepend">
                  <span class="add-on">Artículo</span><input type="text" id="farticulo" name="farticulo" class="input-xlarge search-query" value="<?php echo set_value_get('farticulo'); ?>">
                  <input type="hidden" name="fid" id="fid" value="<?php echo set_value_get('fid'); ?>">
                </div>

                <div class="input-prepend">
                  <span class="add-on">Título / Tags</span><input type="text" name="ftitulo" id="ftitulo" value="<?php echo set_value_get('ftitulo'); ?>" class="input-xlarge search-query">
                </div>

                <input type="submit" name="enviar" value="Enviar" class="btn">
              </div>
            </form> <!-- END FILTROS -->

            <a href="<?php echo base_url('panel/infografia/agregar'); ?>" class="btn btn-success pull-right" style="margin-bottom: 10px;">
                <i class="icon-white icon-plus "></i>
              Agregar
            </a>
            <table class="table table-striped table-bordered bootstrap-datatable table-condensed">
              <thead>
                <tr>
                  <th>Imagen</th>
                  <th>Título</th>
                  <th>Tags</th>
                  <th>Opciones</th>
                </tr>
              </thead>
              <tbody>
            <?php foreach($imagenes['imagenes'] as $img){ ?>
              <tr>
                <td style="width: 110px;">
                  <img src="<?php echo base_url($img->url_thumb) ?>" class="thumbnail" width="100" height="100" />
                </td>
                <td><?php echo $img->titulo; ?></td>
                <td><?php echo $img->tags; ?></td>
                <td class="center">
                  <a class="btn btn-danger" href="<?php echo base_url('panel/infografia/eliminar/?id='.$img->id_imagen.'&'.String::getVarsLink(array('msg'))); ?>" onclick="msb.confirm('Estas seguro de eliminar la imagen? <strong>Nota: La acción no se podra revertir.</strong>', 'Infografía', this); return false;">
                    <i class="icon-trash icon-white"></i>
                    Eliminar
                  </a>
                </td>
              </tr>
          <?php }?>
              </tbody>
            </table>

            <?php
            //Paginacion
            $this->pagination->initialize(array(
                'base_url'      => base_url($this->uri->uri_string()).'?'.String::getVarsLink(array('pag')).'&',
                'total_rows'    => $imagenes['total_rows'],
                'per_page'      => $imagenes['items_per_page'],
                'cur_page'      => $imagenes['result_page']*$imagenes['items_per_page'],
                'page_query_string' => TRUE,
                'num_links'     => 1,
                'anchor_class'  => 'pags corner-all',
                'num_tag_open'  => '<li>',
                'num_tag_close' => '</li>',
                'cur_tag_open'  => '<li class="active"><a href="#">',
                'cur_tag_close' => '</a></li>'
            ));
            $pagination = $this->pagination->create_links();
            echo '<div class="pagination pagination-centered"><ul>'.$pagination.'</ul></div>';
            ?>
          </div>
        </div><!--/span-->

      </div><!--/row-->


          <!-- content ends -->
    </div><!--/#content.span10-->


<!-- Bloque de alertas -->
<?php if(isset($frm_errors)){
  if($frm_errors['msg'] != ''){
?>
<script type="text/javascript" charset="UTF-8">
  $(document).ready(function(){
    noty({"text":"<?php echo $frm_errors['msg']; ?>", "layout":"topRight", "type":"<?php echo $frm_errors['ico']; ?>"});
  });
</script>
<?php }
}?>
<!-- Bloque de alertas -->
